<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="Your description goes here" />
<meta name="keywords" content="your,keywords,goes,here" />
<link rel="stylesheet" type="text/css" media="screen,projection"
	href="<%=basePath%>css/blue/style_screen.css" />
<link rel="stylesheet" type="text/css" media="print"
	href="<%=basePath%>css/blue/style_print.css" />
<script type="text/javascript" src="<%=basePath%>fckeditor/fckeditor.js"></script>
<script type="text/javascript"
	src="<%=basePath%>js/My97DatePicker/WdatePicker.js"></script>
<title>首页</title>
</head>
<body>
	<div class="page-container-1">
		<div class="site-name">
			<p class="title">
				<a href="<%=basePath%>index.html">陕西省人才发展网</a>
			</p>
			<p class="subtitle">
				<a href="<%=basePath%>index.html"></a>
			</p>
		</div>
		<div class="site-slogan-container">
			<div class="site-slogan">
				<p class="title">陕西省人才发展网</p>
			</div>
		</div>
		<!-- Header banner -->
		<div>
			<img class="img-header" src="../img/header.jpg" alt="" />
		</div>
		<!-- Navigation Level 2 -->
		<div class="nav2">
			<ul>
				<li><a href="<%=basePath%>index.html" >主页</a></li>
				<li><a href="<%=basePath%>rencai.html">人才</a></li>
				<li><a href="<%=basePath%>guide.html">指导类</a></li>
				<li><a href="<%=basePath%>adv.html">广告类</a></li>
				<li><a href="<%=basePath%>bbs.html">论坛</a></li>
				<c:if test="${r"${not empty user }"}">
					<li><a
						href="<%=basePath%>servlet/InitServlet?id=${r"${user.id}"}&method=personCenter">个人中心</a></li>
				</c:if>
				<c:if test="${r"${empty user }"}">
					<li><a href="<%=basePath%>login.html">登陆</a><a
						href="<%=basePath%>register.html">注册</a></li>
				</c:if>
				<c:if test="${r"${not empty user }"}">
					<li>欢迎你:${r"${user.name}"}</li>
				</c:if>
			</ul>
		</div>
		<div class="content1">
			<form
				action="<%=basePath %>servlet/InitServlet?method=updateUserInfo&id=${r"${uc.id}"}"
				method="post">
				<table style="border-collapse:separate; border-spacing:10px;">
					<tr>
						<td style="text-overflow:ellipsis;word-break:keep-all; white-space:nowrap;">用户姓名:</td>
						<td><input type="text" value="${r"${uc.name}"}" name="name"></td>
					</tr>
					<tr>
						<td>用户住址:</td>
						<td><input type="text" value="${r"${uc.address}"}" name="address"></td>
					</tr>
					<tr>
						<td>用户生日:</td>
						<td><input class="Wdate" type="text" name="birthday"
							value="${r"${uc.birthday }"}" onClick="WdatePicker()"></td>
					</tr>
					<tr>
						<td>用户邮箱:</td>
						<td><input type="text" value="${r"${uc.email }"}" name="email"
							readonly="readonly"></td>
					</tr>
					<tr>
						<td>用户电话:</td>
						<td><input type="text" value="${r"${uc.tel }"}" name="tel"></td>
					</tr>
					<tr>
						<td>用户性别:</td>
						<td><select name="sex" id="sex" style="width: 155px;">
								<option value="1">男</option>
								<option value="0">女</option>
						</select></td>
						<script type="text/javascript">
						var a=document.getElementById("sex").value
						if(${r"${uc.sex}"}==1){
							a='男';
						}else if(${r"${uc.sex}"}==0){
							a='女';
						}
						
						</script>
					</tr>
					<tr>
						<td>用户名族:</td>
						<td><input type="text" value="${r"${uc.nation }"}" name="nation"></td>
					</tr>
					<tr>
						<td>用户学历:</td>
						<td><input type="text" value="${r"${uc.education}"}"
							name="education"></td>
					</tr>
					<tr>
						<td>用户学校:</td>
						<td><input type="text" value="${r"${uc.school }"}" name="school"></td>
					</tr>
					<tr>
						<td>用户描述:</td>
						<td><script type="text/javascript">
							var myFCKeditor = new FCKeditor('userFCKeditor');
							myFCKeditor.BasePath = "../fckeditor/";
							myFCKeditor.Width = "500";
							myFCKeditor.Height = "300";
							myFCKeditor.Value = "${r"${uc.describeself }"}";
							myFCKeditor.ToolbarSet = "Basic";
							myFCKeditor.Create();
						</script></td>
					</tr>
					<tr>
						<td><input type="submit" value="保存" /></td>
						<td><input type="reset" value="重置" /></td>
					</tr>
				</table>
			</form>
		</div>
		<div class="sidebar">
		  <img alt="" src="pic/temp/${r"${uc.pic }"}" style="width: 155px;height: 180px;">
		  <form action="<%=basePath %>servlet/NewsPicFileUpLoadServlet?method=pcenter&id=${r"${uc.id}"}" method="post" enctype="multipart/form-data">
		  <input type="file" name="file"/><input type="submit" value="上传"/>
		  </form>
		</div>
		<!-- FOOTER -->
		<div class="footer">
			<jsp:include page="public/footer.jsp"></jsp:include>
			<p>
				<b>Copyright &copy; 2006 Your Company | All Rights Reserved</b>
			</p>
		</div>
	</div>
</body>
</html>
